<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Eventos CJava</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="Shortcut Icon" 
              href="#{request.contextPath}/resources/images/world.png" type="image/x-icon" />
        <link href="#{request.contextPath}/resources/thim/css/bootstrap.css" rel="stylesheet" media="screen" />
        <link href="#{request.contextPath}/resources/thim/css/thin-admin.css" rel="stylesheet" media="screen" />
        <link href="#{request.contextPath}/resources/thim/css/font-awesome.css" rel="stylesheet" media="screen" />
        <link href="#{request.contextPath}/resources/thim/style/style.css" rel="stylesheet" />

    </h:head>
    <h:body>
        <div class="widget-404" style="margin-top: 50px;">
            <div class="row">
                <div class="col-md-5">
                    <h1 class="text-align-center">404</h1>
                </div>
                <div class="col-md-7">
                    <div class="description">
                        <h3>Oops! You're lost.</h3>
                        <p>We can not find the page you're looking for.<br />
                            <strong><a href="index.html">Return home</a></strong> or try the search bar below. </p>
                    </div>
                </div>
            </div>

            <div class="widget-404">
                <div class="form-actions">
                    <form role="form" action="index.html" method="get" class="form-inline form-search" >
                        <div class="input-group">
                            <input type="search" placeholder="Pages: Posts, Tags" class="form-control" id="search-input" />
                            <span class="input-group-btn">
                                <button type="submit" class="btn btn-primary">
                                    &nbsp; Search &nbsp;
                                </button>
                            </span>
                        </div>
                    </form>
                </div>
                <ul>
                    <li>Date/time: #{of:formatDate(now, 'yyyy-MM-dd HH:mm:ss')}</li>
                    <li>User agent: #{header['user-agent']}</li>
                    <li>User IP: #{empty header['x-forwarded-for'] ? request.remoteAddr : fn:split(header['x-forwarded-for'], ',')[0]}</li>
                    <li>Request URI: <a href="#{requestScope['javax.servlet.error.request_uri']}">#{requestScope['javax.servlet.error.request_uri']}</a></li>
                    <li>Ajax request: #{facesContext.partialViewContext.ajaxRequest ? 'Yes' : 'No'}</li>
                    <li>Status code: #{requestScope['javax.servlet.error.status_code']}</li>
                    <li>Exception type: #{requestScope['javax.servlet.error.exception_type']}</li>
                    <li>Exception message: #{requestScope['javax.servlet.error.message']}</li>
                    <li>Stack trace: <pre><code>#{of:printStackTrace(requestScope['javax.servlet.error.exception'])}</code></pre></li>
                </ul>
                <h:outputScript rendered="#{facesContext.partialViewContext.ajaxRequest}">scrollTo(0, 0);</h:outputScript>
            </div>
        </div>

        <script src="js/bootstrap.min.js"></script> 

    </h:body>
</html>

